package dwz.persistence.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import dwz.dal.BaseMapper;
import dwz.persistence.BaseConditionVO;
import dwz.persistence.beans.WechatMenu;

@Repository
public interface WechatMenuMapper extends BaseMapper<WechatMenu, Integer> {

	List<WechatMenu> findPageBreakByCondition(BaseConditionVO vo, RowBounds rb);

	Integer findNumberByCondition(BaseConditionVO vo);
	
	void updateStatus(@Param("id") int id, @Param("status") String userStatus,
			@Param("updateDate") Date updateDate);
	List<WechatMenu> findMenuByParentCode(@Param("parentCode") String parentCode);

	WechatMenu getMenuByKeyName(@Param("keyName") String keyName);
}
